package com.lingyun.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingyun.common.pojo.LyUserRole;


import java.util.List;

/**
 * 用户和角色关联表(LyUserRole)表数据库访问层
 * @author 没事别学JAVA
 * @since 2021-03-29 22:20:22
 */

public interface LyUserRoleMapper extends BaseMapper<LyUserRole> {

    public Integer add(LyUserRole lyUserRole);

    public Integer addlist(List<LyUserRole> lyUserRoles);

    public Integer DeleteId(Long userId);

    public Integer selectRoleHaveHowmanyUser(Long roleId);

}
